package com.hopes.common.receive.event;

import com.hopes.boss.admin.api.dto.SysLogDTO;
import com.hopes.common.receive.enums.DataTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

@Getter
public class ReceiveLogEvent extends ApplicationEvent {

    private final SysLogDTO sysLogDTO;

    private final DataTypeEnum dataTypeEnum;

    public ReceiveLogEvent(Object source, SysLogDTO sysLogDTO, DataTypeEnum dataTypeEnum) {
        super(source);
        this.sysLogDTO = sysLogDTO;
        this.dataTypeEnum = dataTypeEnum;
    }

    public ReceiveLogEvent(Object source, Clock clock, SysLogDTO sysLogDTO, DataTypeEnum dataTypeEnum) {
        super(source, clock);
        this.sysLogDTO = sysLogDTO;
        this.dataTypeEnum = dataTypeEnum;
    }
}

